-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install using the setuptools.build_meta backend #1535
Conversation
Installing with `pip install -e .` fails due to setup.py being deprecated after setuptools adopted PEP-517 [1]. Migrate to building using a setup.cfg file. This was mostly a 1-to-1 migration except for setting `install_requires`. Setuptools recommends not reading `requirements.txt` as the value for `install_requires` [4]. See also: - A Practical Guide to Setuptools and Pyproject.toml [2] - Configuring setuptools using setup.cfg files [3] [1] https://peps.python.org/pep-0517/ [2] https://godatadriven.com/blog/a-practical-guide-to-setuptools-and-pyproject-toml/ [3] https://setuptools.pypa.io/en/latest/userguide/declarative_config.html [4] pypa/setuptools#1951
When following the HELM quick start, I was running into this error while installing.
Steps to Reproduce
|
On second thought, we should probably leave the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
I think we can remove setup.py (I don't think we need build system reverse compatibility).
Installing with
pip install -e .
fails due to setup.py being deprecated after setuptools adopted PEP-517 [1]. Migrate to building using a setup.cfg file.This was mostly a 1-to-1 migration except for setting
install_requires
. Setuptools recommends not readingrequirements.txt
as the value forinstall_requires
[4].See also:
[1] https://peps.python.org/pep-0517/
[2] https://godatadriven.com/blog/a-practical-guide-to-setuptools-and-pyproject-toml/
[3] https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
[4] pypa/setuptools#1951